import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router/router'
import ElementPlus from 'element-plus' //全局引入
import 'element-plus/dist/index.css'
import Store from "./store/store";
import axios from 'axios'

axios.defaults.headers["Content-Type"] = "application/json;charset=utf-8";
const service = axios.create({
    // axios中请求配置有baseURL选项，表示请求URL公共部分
    baseURL: "http://212.64.21.176:9000/v1",
    // baseURL:"http://127.0.0.1:9000/v1"
    // 超时
    // timeout: 120000
});
const app = createApp(App);
app.use(router);
app.use(Store);
app.use(ElementPlus);
app.provide('$axios', service)
app.mount('#app');
